#--------------------------------------------------------------------------------------------------
#Micro Operation System Project Copyright 2012
#Author : Ilya Churaev
#Started : 2 May 2012	Updated : 18 Nov 2012
#File Name : makefile   Purpose : create libc.a
#--------------------------------------------------------------------------------------------------
-include ../../conf/rules.mk
INC = ../include

ifeq "$(MAKEFLAGS)" "DEBUG"
	CFLAGS = -fomit-frame-pointer -m32 -g -I$(INC) -Wall -nostdlib -nostdinc
else 
	CFLAGS = -fomit-frame-pointer -m32 -I$(INC) -Wall -nostdlib -nostdinc
endif

RM = rm -f

LIBC = libmc.a

OBJS = string.o vsprintf.o ctype.o math.o queue.o algorithm.o read_line.o

.PHONY: clean

libmc.a: $(OBJS)
	@$(AR) rv $(LIBC) $(OBJS)

.c.o:
	@$(CC) $(CFLAGS) -c -o $@ $<
solib:
	#gcc -I../include -shared dprint.c -o libdprint.so
clean:
	@$(RM) $(OBJS)
	@$(RM) $(LIBC)
	
